home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / svcitocx / install.bat < prev    next >
DOS Batch File  |  1999-05-18  |  2KB  |  40 lines

  1. @echo off
  2. Rem This setup was written using a simple batch file so that you can see how the control gets installed on your system
  3. if "%PROCESSOR_ARCHITECTURE%"=="" goto Is95
  4. copy %PROCESSOR_ARCHITECTURE%\svcit.ocx %SystemRoot%\system32
  5. if errorlevel 1 goto CantCopy
  6. if not exist %SystemRoot%\system32\regsvr32.exe goto NoRegSvr
  7. regsvr32 %SystemRoot%\system32\Svcit.ocx
  8. goto End
  9. :Is95
  10. if "%windir%"=="" goto BadOS
  11. copy win95\svcit.ocx %windir%\system
  12. if errorlevel 1 goto CantCopy
  13. if not exist %windir%\system\regsvr32.exe goto NoRegSvr
  14. if not exist %windir%\system\mfc42.dll goto NoMFC42
  15. if not exist %windir%\system\msvcrt.dll goto NoMSVCRT
  16. %windir%\system\regsvr32 %windir%\system\svcit.ocx
  17. goto End
  18. :BadOS
  19. Echo Installation aborted! You can only install Service-It Control under Windows NT 4.0/2000 or Windows 95/98
  20. pause
  21. goto End
  22. :NoRegSvr
  23. Echo Installation aborted! RegSvr32.exe is not installed in your system directory. RegSvr32.exe is required to register svcit.ocx control into the system.
  24. pause
  25. goto End
  26. :NoMFC42
  27. Echo Installation aborted! mfc42.dll is not present in the %windir%\system directory
  28. pause
  29. goto End
  30. :NoMSVCRT
  31. Echo Installation aborted! msvcrt.dll is not present in the %windir%\system directory
  32. pause
  33. goto End
  34. :CantCopy
  35. Echo Installation aborted! Cannot copy svcit.ocx to your system directory. 
  36. Echo The source file is missing or the destination file is locked. 
  37. Echo You must stop all Windows NT services using the control and you must 
  38. Echo close your development environment before installing the control
  39. pause
  40. :End